<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp" %>

<head>
    <title><spring:message code="menu.taxpayer.new_taxpayer_app"/></title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <link rel="stylesheet" href="<c:url value="/css/styles.css"/>"/>
    <script src="<c:url value="/javascripts/common.js"/>" type="text/javascript"></script>
</head>

<body>
<div class="page">
    <%@include file="../top_menu.jsp" %>
    <table width=100%>
        <tr>
            <td><c:import url="/WEB-INF/jsp/menu/taxpayer_menu.jsp" /></td>
        </tr>
        <tr>
            <td>
                <%@include file="/WEB-INF/jsp/include/messages.jsp" %>
                <br/></td>
        </tr>
    </table>
    <div class="contentArea">
    <form:form method="post" action="saveNewApplication.htm" commandName="viewTaxPayerInfo">        
	      <table border="0">
	      		<c:if test="${empty transactionDetail && (duplicateApplication==null)}">	      			
            		<tr>
                		<td colspan="2" width="100%"  height="70" style="color:red">
                			<table border="0">
                				<tr>
                					<td width="2%">
                  						<img src="<c:url value='/images/Problem_Cheque.png'/>" width="24" height="24"/>
                  					</td>
                  					<td width="98%">
                  						<spring:message code="msg.taxpayer.manualtrace"/>
                  					</td>
            					</tr>
            					<tr valign="top">
            						<td width="2%">&nbsp;</td>
	                				<td width="98%"><spring:message code="label.taxpayer.transactionNum"/>&nbsp;
	                					<form:input path="transactionNum" size="30" maxlength="30"/>
	                					<input type="submit" name="traceNumber" id="traceNumber" class='ui-button ui-state-default ui-corner-all' value="Trace" onclick="javascript:document.forms[1].action='traceTransactionNum.htm'"/>
	                				</td>
	                			</tr>
	                		</table>
	                	</td>
	                </tr>
            	</c:if>
            	<c:if test="${!empty transactionDetail}">
            		<tr>
            			<td colspan="2" width="50%" height="100%">
            				<table border="0" width="50%" bgcolor="#D7D7D7">
            					<tr>
            						<td colspan="2" width="40%">
            							<strong><c:out value="${fn:length(transactionDetail)}"/></strong> Matches Found:            							            						            						
            						</td>
            					</tr>
            					<tr bgcolor="#FAFAF7">
            						<td align="center" style="font-weight: bold;">Transaction Number</td>
            						<td align="center" style="font-weight: bold;">Transaction Status</td>
            					</tr>
            					<c:forEach var="transaction" items="${transactionDetail}">            					
            						<tr bgcolor="#FFFFFF">
            							<td align="left" width="12%"><a href="#"><c:out value="${transaction.traceNumber }"/></a></td>
            							<td align="left"><c:out value="${transaction.transactionStatus.meaning}"/></td>
            						</tr>
            					</c:forEach>
            				</table>
            			</td>
            		</tr>
            	</c:if>
            	<c:if test="${not empty duplicateApplication}">
            		<tr style="color:green">
            			<td width="2%">
                  			<img src="<c:url value='/images/Problem_Cheque.png'/>" width="24" height="24"/>
                  		</td>                  		
            			<td width="50%" height="100%">
            				<spring:message code="msg.taxpayer.duplicateApplication"></spring:message>
            			</td>
            		</tr>
            	</c:if>
            	<tr><td>&nbsp;</td></tr>
	            <tr>
	                <td width="50%">	                    
	                    <table border="0">	                       
	                        <tr>
	                            <td colspan="2"><b><spring:message code="hdr.taxpayer.info"/></b></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.ssn"/></td>
	                            <td>
	                            	<form:input path="taxPayerSSNITIN" size="30" maxlength="30"/>
	                            	<br/><form:errors path="taxPayerSSNITIN"/>
	                            </td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.firstNm"/></td>
	                            <td><form:input path="firstName" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.middleNm"/></td>
	                            <td><form:input path="middleName" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.lastNm"/></td>
	                            <td><form:input path="lastName" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.dob"/></td>
	                            <td><form:input path="DOB" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                        	<td><spring:message code="label.taxpayer.idCard"/></td>
	                        	<td><form:input path="identificationNum" size="30" maxlength="30"/></td>
	                        </tr>
							<tr>
	                        	<td><spring:message code="label.taxpayer.issuedBy"/></td>
	                        	<td><form:input path="issuedBy" size="30" maxlength="30"/></td>
	                        </tr>
							<tr>
	                        	<td><spring:message code="label.taxpayer.dateofissue"/></td>
	                        	<td><form:input path="issueDt" size="30" maxlength="30"/></td>
	                        </tr>                     
							<tr>
	                        	<td><spring:message code="label.taxpayer.dateofexp"/></td>
	                        	<td><form:input path="expDt" size="30" maxlength="30"/></td>
	                        </tr>                                                                                                                                                      
	                        <tr>
	                            <td><spring:message code="label.taxpayer.applyItin"/></td>
	                            <td><form:checkbox path="applyItin" id="applyItin" value="Y"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.streetAddress"/></td>
	                            <td><form:input path="resAddr" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.streetAddress2"/></td>
	                            <td><form:input path="streetAddr" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.zipCode"/></td>
	                            <td><form:input path="zipCode" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.homePhone"/></td>
	                            <td><form:input path="homePhone" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.cellPhone"/></td>
	                            <td><form:input path="cellNum" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.carrierName"/></td>
	                            <td><form:input path="cellCarrier" size="30" maxlength="30"/></td>
	                        </tr>                        
	                        <tr>
	                            <td><spring:message code="label.taxpayer.product"/></td>
	                            <td>
	                                <form:radiobutton path="productRequestd" value="EFC" label="Electronic Refund Check"/><br>
	                                <form:radiobutton path="productRequestd" value="EDD" label="Electronic Direct Deposit"/>
	                            </td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.routingNumber"/></td>
	                            <td><form:input path="routingNum" size="30" maxlength="30" id="routingNum1"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.routingNumberCnfrm"/></td>
	                            <td><form:input path="routingNum" size="30" maxlength="30" id="routingNum2"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.acctNum"/></td>
	                            <td><form:input path="acctNum" size="30" maxlength="30" id="acctNum1"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.acctNumCnfrm"/></td>
	                            <td><form:input path="acctNum" size="30" maxlength="30" id="acctNum2"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.agreement"/></td>
	                            <td>
	                                <form:select path="agreement">
	                                	<form:option value="" label="Select"/>
	                                    <form:option value="signed" label="Signed"/>
	                                    <form:option value="notyet" label="Not Yet"/>
	                                </form:select>
	                            </td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.disclosure"/></td>
	                            <td>
	                                <form:select path="discloseAggrement">
	                                	<form:option value="" label="Select"/>
	                                    <form:option value="yes" label="Yes"/>
	                                    <form:option value="no" label="No"/>
	                                </form:select>
	                            </td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.consent"/></td>
	                            <td>
	                                <form:select path="useAggrement">
	                                	<form:option value="" label="Select"/>
	                                    <form:option value="yes" label="Yes"/>
	                                    <form:option value="no" label="No"/>
	                                </form:select>
	                            </td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.contractAggrement"/></td>
	                            <td>
	                                <form:select path="contractAggrement">
	                                    <form:option value="" label="Select"/>
	                                    <form:option value="yes" label="Yes"/>
	                                    <form:option value="no" label="No"/>
	                                </form:select>
	                            </td>
	                        </tr>
	                    </table>
	                </td>
	                <td width="50%" valign="top">
	                    <table>
	                        <tr>
	                            <td colspan="2"><b><spring:message code="label.taxpayer.hdrSpouseInfo"/></b></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.spouseSSN"/></td>
	                            <td><form:input path="spouseSSNITIN" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.spouseFN"/></td>
	                            <td><form:input path="spouseFirstNm" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.spouseMN"/></td>
	                            <td><form:input path="spouseMiddleNm" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.spouseLN"/></td>
	                            <td><form:input path="spouseLastNm" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.dob"/></td>
	                            <td><form:input path="spouseDOB" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                        	<td><spring:message code="label.taxpayer.idCard"/></td>
	                        	<td><form:input path="spouseIdentificationNum" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                        	<td><spring:message code="label.taxpayer.issuedBy"/></td>
	                        	<td><form:input path="spouseIssuedBy" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                        	<td><spring:message code="label.taxpayer.dateofissue"/></td>
	                        	<td><form:input path="spouseIdIssueDt" size="30" maxlength="30"/></td>
	                        </tr>                                 
	                        <tr>
	                        	<td><spring:message code="label.taxpayer.dateofexp"/></td>
	                        	<td><form:input path="spouseIdExpDt" size="30" maxlength="30"/></td>
	                        </tr>                                                                                                                        
	                        <tr>
	                            <td><spring:message code="label.taxpayer.applyItin"/></td>
	                            <td><form:checkbox path="spouseApplyITIN" id="applyItinS" value="Y"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.matchNeeded"/></td>
	                            <td><form:input path="match" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.amtExpected"/></td>
	                            <td><form:input path="amountExpcted" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.amtReceived"/></td>
	                            <td><form:input path="amountReceived" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.comments"/></td>
	                            <td><form:input path="comments" size="30" maxlength="30"/></td>
	                        </tr>
	                        <tr>
	                            <td colspan="2"><b><spring:message code="label.taxpayer.warningMsg"/></b></td>
	                        </tr>
	                        <tr>
	                            <td colspan="2">
	                                &nbsp;<form:checkbox value="Y" path="familyITIN" id="chkbox1" label="Someone in the family is Applying for ITIN#"/><br/>
	                                &nbsp;<form:checkbox value="Y" path="childSupport" id="chkbox2" label="Taxpayer / Spouse owes Child Support"/><br/>
	                                &nbsp;<form:checkbox value="Y" path="loans" id="chkbox3" label="Taxpayer / Spouse owes Student loans / Educational Institutions"/><br/>
	                                &nbsp;<form:checkbox value="Y" path="back" id="chkbox4" label="Taxpayer / Spouse owes back taxes to IRS / State"/>
	                            </td>
	                        </tr>
	                        <tr>
	                            <td><spring:message code="label.taxpayer.misc"/></td>
	                            <td><form:textarea path="misc" rows="8" cols="40"/></td>
	                        </tr>
	                    </table>
	                </td>
	            </tr>
	            <tr>
	                <td colspan="2" align="center"><input type="submit" value="Submit" name="step2" class='ui-button ui-state-default ui-corner-all' /></td>
	            </tr>
	        </table>
		</form:form>		
    </div>    
</div>
<%@include file="/WEB-INF/jsp/include/footer.jsp" %>
</body>
</html>